package com.example.utils;

import java.util.Map;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;

public class String2Map {
	public static Map<String, Object> string2map(String str_json) {

        Map<String, Object> res = null;
        try {
              Gson gson = new Gson();
              res = gson.fromJson(str_json, new TypeToken<Map<String, Object>>() {}.getType());
        } catch (JsonSyntaxException e) {
        	
        }
        return res;
	}
}
